package com.demo.forumproject.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
//定义一个一级映射路径
@RequestMapping("/test")

//表示返回的结果是数据，不是一个url
public class TestController
{
    @RequestMapping("/hello")
    public String hello()
    {
        return "hello";
    }
}
